package com.xcity.game.peakroad.model.response;

import com.xcity.db.entity.Player;
import com.xcity.game.peakroad.template.PeakRoadTemplate;

public class Floor {

	public int floor; // 该层层数
	public byte type; // 类型
	public FloorSub challengeFloor; // 挑战层信息
	public FloorSub rewardFloor; // 奖励层信息
	
	public Floor(Player player, PeakRoadTemplate refer) {
		this.floor = refer.getId();
		this.type = refer.getType();
		if (this.type == PeakRoadTemplate.FLOOR_CHALLENGE) {
			this.challengeFloor = new ChallengeFloorSub(player, refer);
		} else {
			this.rewardFloor = new RewardFloorSub(player, refer);
		}
	}
	
	
}
